-
-
Notifications
You must be signed in to change notification settings - Fork 617
feat(openAPI-union) Add type support for unions with additionalProperties to provide ts intellisense #2415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
👷 Deploy request for openapi-ts pending review.Visit the deploys page to approve it
|
🦋 Changeset detectedLatest commit: 404db56 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Thanks for submitting this! Sorry for the delay in reviewing. There’s a slight conflict with another PR that recently got merged. If you’re able to resolve the conflict, and tests are still passing, would be happy to merge, thank you! Also please be sure to add a changeset (see comment) so this can be versioned & released |
|
Hey @drwpow, Thanks again, |
drwpow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks again!
Thank you for your work on this package, much appreciated! I came across
string & {}recently to get 'loose autocomplete' on a string and thought it might help here.Changes
What does this PR change? Link to any related issue(s).
A union of type "A" | "B" | "C" will now provide intellisense options from the union but also accept non-union string entries
How to Review
How can a reviewer review your changes? What should be kept in mind for this review?
Checklist
docs/updated (if necessary)pnpm run update:examplesrun (only applicable for openapi-typescript)